package com.example.mqtt;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@SpringBootApplication
/**
 * 扫包不要范围大了,mybatis会把你指定包下的所有interface都认成mapper
 */
@MapperScan("com.example.mqtt.mapper")
@EnableSwagger2
@EnableWebMvc
public class MqttApplication {
    public static void main(String[] args) {
        SpringApplication.run(MqttApplication.class, args);
    }

}
